import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;

import javax.swing.JPanel;
public class ShowInfo extends JPanel {
		/**
	 * 
	 */
	private static final long serialVersionUID = -2960743865103278738L;

		private int m_time;
		private int m_life;
		private int m_points;
	
		public void setTime(int time) {
			m_time = time;
			
		}
		public void setPointsGained(int points) {
			m_points = points; 
		}
		public void setLifeLeft(int lifeLeft) {
				m_life=lifeLeft;
		}
		
		public void setWindowHeight(int WindowHeight){
			windowHeight = WindowHeight;
		}
		
		public void setWindowWidth(int WindowWidth){
			windowWidth = WindowWidth;
		}
		
		
		private int windowHeight;
		private int windowWidth;
		
		public ShowInfo()
		{
			super();
		}
		
		@Override
		public Dimension getPreferredSize()
		{
			return new Dimension(windowWidth, windowHeight);
		}
		
		@Override
		public void paintComponent(Graphics g)
		{
			super.paintComponent(g);
			
			Graphics2D g2d = (Graphics2D) g;
			
			
			// Draw the components with g2d
			Color color;
			color = Color.red;
			String name = "BOMBERMAN CLASSIC_V.0.0.1 ";
			String time_left = "time_left = " + new Integer(m_time).toString();
			Font font = new Font("TimesRoman",Font.PLAIN, 20);
			g2d.setFont(font);
			g2d.drawString(name, 100, 25 );
			g2d.drawString(time_left, 100, 45);
			String life_left = "life_left = " + new Integer(m_life).toString();
			g2d.drawString(life_left, 450, 45);
			String points_gained = "Points = " + new Integer(m_points).toString();
			g2d.drawString(points_gained, 300,45);
		}

		
}
